﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace com.huigo.B2B.Web.master
{
    public partial class CenterMain : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public string getCss(string m)
        { 
            string menuName = string.Empty;
            switch (Request.Url.AbsolutePath.ToLower())
            { 
                case"/center/order/orderlist.aspx":
                    menuName = "1";
                    break;
                case "/center/order/policylist.aspx":
                    menuName = "2";
                    break;
                case"/center/order/unpaidorder.aspx":
                    menuName = "3";
                    break;
                case"/center/order/problempolicy.aspx":
                    menuName = "4";
                    break;
                case"/center/invoice/applyinvoice.aspx":
                    menuName = "5";
                    break;
                case"/center/invoice/invoice.aspx":
                    menuName = "6";
                    break;
                case"/center/account/supplement.aspx":
                    menuName = "8";
                    break;
                case"/center/account/consumption.aspx":
                    menuName = "9";
                    break;
                case"/center/account/updatepwd.aspx":
                    menuName = "10";
                    break;
            }
            string className = string.Empty;
            if (m == menuName)
                className = "active";
            return className;
        }
    }
}
